adTempus API
PreviousUpNext
IScheduler::CreateObject Method

Creates a new data object of the specified class.

C++
HRESULT CreateObject(ClassIDEnum CID, [out,retval] IADTObject** ppObject);
C#
CreateObject(ClassIDEnum CID, [out,retval] IADTObject* ppObject);
Visual Basic
Sub CreateObject(CID As ClassIDEnum, ppObject As [out,retval] IADTObject*)
Parameters 
Description 
[in] ClassIDEnum CID 
The CID of the class for which you want to create an object. 
[out,retval] IADTObject** ppObject 
On return, contains a pointer to the new object 

If the object is secured, the client must have saAdd permission for the class, or the method will fail with error ADT_E_NO_PERMISSION.

adTempus API Reference version 3.0.0.0, revised 10/30/2008